﻿@page "/CarGuan"
@inject IDbContextFactory<CarlifeDbcontext> dbFactory
@using Carlife.Inf;
@using Microsoft.EntityFrameworkCore;
@using Models;
@using Models.CarsGuanLi;
<PageTitle>车辆采购管理</PageTitle>

@* <h3>车辆采购管理</h3>

@*<table class="table-responsive" width="90%">
    <tr>
        <td>采购Id</td>
        <td>合同编号</td>
        <td>采购数量</td>
        <td>采购人</td>
        <td>申请公司</td>
        <td>业务状态</td>
        <td>采购日期</td>
    </tr>

    @foreach (var item i)
    {
        <tr>

            <td>@item.Id</td>
            <td>@item.Carcode</td>
            <td>@item.Prcturename</td>
            <td>@item.Cardescribe</td>
           
        

           @* <td>
                <a href="/AddBook?Id=@item.Id">编辑</a>

                <button id="edit" class="btn btn-primary">修改</button>
            </td>*@
@*        </tr>

    }
</table>*@


@*
@code {
    private static CarlifeDbcontext _context;

    private List<Channel> guans = new List<Channel>();

    protected override async Task OnInitializedAsync()
    {

        _context = dbFactory.CreateDbContext();
        guans = _context.Channel.ToList();
        await base.OnInitializedAsync();
    }

}*@
